package edu.je.column.repo;

import edu.je.column.model.SubscribeStateModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author MengXin
 * @description:
 * @program: je-gateway
 * @date 2021/4/22 20:49
 * @mail mx@radish.cloud
 */
@Repository
public interface SubscribeStateRepo extends JpaRepository<SubscribeStateModel,Long> {
    Optional<SubscribeStateModel> findByUserIdAndColumnId(Long userId,Long columnId);
}
